<?php
/* @var $this WineController */
/* @var $model Wine */
/* @var $form CActiveForm */
?>

<?php
    $wine_type = array("") + ModelHelper::modelToArray(WineType::model()->findAll());
    $fastening = array("") + ModelHelper::modelToArray(Fastening::model()->findAll());
    $vintner = array("") + $this->vintnersToArray(Vintner::model()->findAll());
?>

<div class="form">

<?php $form=$this->beginWidget('CActiveForm', array(
	'id'=>'wine-form',
	'enableAjaxValidation'=>false,
)); ?>

	<!--<p class="note">Fields with <span class="required">*</span> are required.</p>-->

	<?php echo $form->errorSummary($model); ?>

	<div class="row">
		<?php echo $form->labelEx($model,'description_short'); ?>
		<?php echo $form->textArea($model,'description_short',array('rows'=>6, 'cols'=>50)); ?>
		<?php echo $form->error($model,'description_short'); ?>
	</div>
	
<!-- 	<br> -->
	
	<div class="row">
		<?php echo $form->labelEx($model,'description_long'); ?>
		<?php echo $form->textArea($model,'description_long',array('rows'=>20, 'cols'=>100)); ?>
		<?php echo $form->error($model,'description_long'); ?>
	</div>

	<div class="row buttons">
		<?php echo CHtml::submitButton($model->isNewRecord ? 'Anlegen' : 'Speichern'); ?>
	</div>

<?php $this->endWidget(); ?>

</div><!-- form -->